﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcDownloadHistory.ascx.cs" Inherits="TheHeGeo.UserControl.UcDownloadHistory" %>
<%@ Register Assembly="DevExpress.Web.v14.2, Version=14.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>




<style type="text/css">
 .auto-style3 { width: 111px; }
    .auto-style4 {
        width: 108px;
    }
    .auto-style5 {
        width: 30px;
    }
    .auto-style6 {
        width: 80px;
    }
</style>
<div>
    <dx:ASPxLabel ID="SensorName" runat="server" Text="ASPxLabel" Font-Bold="True" Font-Size="Medium"></dx:ASPxLabel>
</div>
<div>
    <table>
        <tr>
            <td class="auto-style6">
                <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Thử nghiệm">
                </dx:ASPxLabel>
            </td>
            <td>
                <dx:ASPxGridLookup ID="grlDataTest" runat="server" Width="100%" AllowUserInput="False" DisplayFormatString="{0}" SelectionMode="Single" KeyFieldName="Id" TextFormatString="{0}" AutoGenerateColumns="False" MultiTextSeparator="," AutoPostBack="True" OnValueChanged="grlDataTest_ValueChanged" >
                <GridViewProperties>
                <SettingsBehavior AllowFocusedRow="True" AllowSelectByRowClick="True" autofilterrowinputdelay="100"></SettingsBehavior>
                    <Settings UseFixedTableLayout="False" ShowFilterRow="True" />
                </GridViewProperties>
                    <Columns>
                        
                        <dx:GridViewDataTextColumn Caption="Tên/Ghi chú" FieldName="GhiChuTest" VisibleIndex="1" Name="GhiChuTest">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTimeEditColumn   Caption="Thời gian bắt đầu" FieldName="ThoiGianBatDauTest" VisibleIndex="2" Name="ThoiGianBatDauTest">
                            <PropertiesTimeEdit DisplayFormatString="yyyy/MM/dd HH:mm:ss" DisplayFormatInEditMode="true">
                            </PropertiesTimeEdit>
                        </dx:GridViewDataTimeEditColumn>
                        <dx:GridViewDataTimeEditColumn Caption="Thời gian kết thúc" FieldName="ThoiGianKetThucTest" VisibleIndex="3" Name="ThoiGianKetThucTest">
                            <PropertiesTimeEdit DisplayFormatString="yyyy/MM/dd HH:mm:ss" DisplayFormatInEditMode="true">
                            </PropertiesTimeEdit>
                        </dx:GridViewDataTimeEditColumn>
                        <dx:GridViewDataTextColumn FieldName="Id" VisibleIndex="4" Visible="False" Name="Id">
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <ClientSideEvents DropDown="function(s, e) {	s.GetGridView().SetWidth(s.GetWidth());}" Init="function(s, e) {s.GetGridView().SetWidth(s.GetWidth());}" />
                </dx:ASPxGridLookup>
            </td>
             <td>
                <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Từ">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style4">
                <dx:ASPxDateEdit ID="deFrom" runat="server" DisplayFormatString="yyyy/MM/dd HH:mm:ss" EditFormat="DateTime" EditFormatString="yyyy/MM/dd HH:mm:ss"  Width="160px">
                </dx:ASPxDateEdit>
                            
            </td>
            <td>
                <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Đến">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style3">
                <dx:ASPxDateEdit ID="deTo" runat="server" DisplayFormatString="yyyy/MM/dd HH:mm:ss" EditFormat="DateTime" EditFormatString="yyyy/MM/dd HH:mm:ss"  AutoPostBack="True" Width="160px">
                </dx:ASPxDateEdit>
            </td>
            <td class="auto-style5">
                <dx:ASPxButton ID="btnDownload" runat="server"  Text="Download" Width="71px" OnClick="btnDownload_Click">
                </dx:ASPxButton>
            </td>
        </tr>
    </table> 
</div>
